package com.csw.tourismInformation.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.csw.tourismInformation.entity.Province;

/**
 * Created by Administrator on 2019/10/23.
 */
@Mapper
public interface ProvinceDao {
	Integer queryCount();

	List<Province> queryAllAndByPage(@Param("firstIndex") Integer firstIndex, @Param("lastIndex") Integer lastIndex);

	void deleteById(@Param("pid") Integer pid);

	Province queryById(@Param("pid") Integer pid);

	void updateById(@Param("province") Province province);

	void addProvince(@Param("province") Province province);

	List<Province> queryAll();

	void updateSpots(@Param("province") Province province);
}
